package cn.akwangl.design.pattern.structural.adapter;

/**
 * 适配者模式.
 *
 * @author youyongkun
 * @date 2021/11/25 22:45
 * @since 1.0
 */
public class AdapterPatternDemo {
    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();

        audioPlayer.play("mp3", "beyond the horizon.mp3");
        audioPlayer.play("mp4", "alone.mp4");
        audioPlayer.play("vlc", "far far away.vlc");
        audioPlayer.play("avi", "mind me.avi");
    }
}